package com.iespring.mapper.admin;

import com.iespring.bean.admin.goods.po.MallComment;
import com.iespring.bean.app.comment.pojo.Comment;
import com.iespring.bean.app.user.vo.WxCommentVo;
import com.iespring.bean.common.BasePageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MallCommentMapper {

    // 显示商品评论列表
    List<MallComment> showCommentList(BasePageInfo basePageInfo);

    // 判断评论是否已回复
    String isReply(Integer commentId);

    // 回复
    void reply(@Param("commentId") Integer commentId, @Param("content") String content);

    // 删除评论
    void deleteComment(Integer commentId);

    //插入评论
    int insertSelective(Comment comment);

    List<MallComment> selectByValueId(int valueId);


    List<MallComment> selectAllComment(@Param("valueId") Integer valueId, @Param("type") Byte type, @Param("hasPicture") Boolean hasPicture);

    List<WxCommentVo> selectByValueId2(@Param("id") Integer id);
}
